package com.eolcum.evo.receiver;

import com.eolcum.evo.service.EvoService;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;

public class Receiver extends BroadcastReceiver {

	boolean mBounded;
	
	@Override
	public void onReceive(Context context, Intent intent) {
		if (intent.getAction() != null) {
			if (intent.getAction().equals(Intent.ACTION_BOOT_COMPLETED)
					|| intent.getAction().equals(Intent.ACTION_USER_PRESENT)) {
				intent = new Intent(context, EvoService.class);
				context.startService(new Intent(context, EvoService.class));
				Log.i("Autostart", "started");
			}
		}
	}
}
